package academic.ui.client.widgets;

import ui.client.GenericContainerTag;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;

public class ModalBox extends Composite {

	public GenericContainerTag div = new GenericContainerTag("div");
	public GenericContainerTag modalTop = new GenericContainerTag("div");
	public GenericContainerTag modalContent = new GenericContainerTag("div");
	public GenericContainerTag modalMain = new GenericContainerTag("div");
	public GenericContainerTag modalHeader = new GenericContainerTag("div");
	public GenericContainerTag modalFooter = new GenericContainerTag("div");
	public GenericContainerTag modalBottom = new GenericContainerTag("div");
	public ModalBox() {
		div.setStyleName("modal_window");
		modalTop.setStyleName("modal_top");
		modalContent.setStyleName("modal_content");
		modalBottom.setStyleName("modal_bottom");
		modalHeader.setStyleName("modal_header");
		modalFooter.setStyleName("modal_footer");
		modalMain.setStyleName("modal_main");
		div.add(modalTop);
		div.add(modalContent);
		modalContent.add(modalHeader);
		modalContent.add(modalMain);
		modalContent.add(modalFooter);
		div.add(modalBottom);
		initWidget(div);
	}
	public void setHeader(Widget w) {
		modalHeader.clear();
		modalHeader.add(w);
	}
	public void setContent(Widget w) {
		modalMain.clear();
		modalMain.add(w);
	}
}
